package com.chatroomserver.vo.user;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class UpdateUserVo {
    private String name;
    @NotBlank(message = "密码不能为空~")
    @Pattern(
            regexp = "^[a-zA-Z0-9!@#$%^&*()_+\\-=\\[\\]{};':\",./<>?]{6,20}$",
            message = "密码必须为6-20位，仅允许英文字母、数字及常见特殊符号"
    )
    private String password;
    private String avatar;
}
